home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-09-13 | 4.6 KB | 187 lines | [TEXT/MPS ] |
- /* ------------------------------------------------------------------------------
- FILENAME
- ChooserSupport.r
-
- DESCRIPTION
- This module contains the ImageWriter LQ constants, types, and resources that
- are needed in order for the driver to work with the Chooser.
-
- Note: all resources should be designated to load into the system heap.
-
- COPYRIGHT
- Copyright Apple Computer, Inc. 1992
- All rights reserved.
-
- -------------------------------------------------------------------------------- */
-
- // System 7.0 Compatible
- #define SystemSevenOrLater 1
-
- // Include System Resource Definitions
- #include "Types.r"
- #include "SysTypes.r"
-
- // Include the ImageWriter LQ driver constants that are used in the resources
- #include "Resources.h"
-
- // Include the public QuickDraw GX printing files
- #include "PrintingResTypes.r"
-
- // Include the ImageWriter LQ Driver's LDEF and PACK Code Segments ===== */
-
- include "IWLQ_PACK";
- include "IWLQ_LDEF";
-
-
- /*********************************************************************************************
- THINGS TO CONTROL THE DEFAULT CHOOSING MECHANSIM
- *********************************************************************************************/
-
- // The 'look' resource is used by the driver's PACK to know how to communicate
- // to the device. This resource contains the default settings, as the actual value
- // can be found in the desktop printer.
-
- resource 'look' (kLookRsrcID, sysheap, purgeable)
- {
- 2, // use the first in our list by default
- {
- "AppleTalk", kPAPCommRsrcID, isAppleTalk, "LQ";
- "Serial", kSerialCommRsrcID, iconCells, "Modem Port";
- "Servers", kPrinterShareCommRsrcID, isAppleTalk+isPrinterShare, "ImageWriterLQIS";
- };
- };
-
-
- // This 'comm' resource defines the default communication settings when using this
- // driver with PrinterShare.
-
- resource 'comm' (kPrinterShareCommRsrcID, sysheap, purgeable)
- {
- PrinterShare
- {
- "",
- 0
- };
- };
-
-
- // This 'comm' resource defines the default communication settings when using this
- // driver with PAP communications.
-
- resource 'comm' (kPAPCommRsrcID, sysheap, purgeable)
- {
- PAP
- {
- 1,
- "",
- 0, 0, 0, 0
- };
- };
-
-
- // This 'comm' resource defines the default communication settings when using this
- // driver with direct Serial communications.
-
- resource 'comm' (kSerialCommRsrcID, sysheap, purgeable)
- {
- Serial
- {
- baud19200, /* Output baud rate */
- noParity, /* Output parity */
- oneStop, /* Output stop bits */
- data8, /* Output data size */
- 0x00010000, /* Output handshaking (hardware handshaking) */
- 0x00000000,
- baud19200, /* Input baud rate */
- noParity, /* Input parity */
- oneStop, /* Input stop bits */
- data8, /* Input data bits */
- 0, /* Input handshaking */
- 0,
- 1024, /* Input buffer size */
- ".AIn", /* Input driver name */
- ".AOut" /* Output driver name */
- };
- };
-
-
- /*********************************************************************************************
- STANDARD CHOOSER PACK STUFF
- *********************************************************************************************/
-
-
- // NBP Lookup type (maxed out so resource file won't need updating)
- resource 'STR ' (-4096, sysheap, purgeable)
- {
- "XXXXXXXXXXXXXXXXXXXXXX";
- };
-
- // NBP timeout value
- type 'GNRL'
- {
- byte; // timeout
- byte; // retries
- };
-
- resource 'GNRL' (-4096, sysheap, purgeable)
- {
- 11,
- 5
- };
-
- // title string (we'll put a control here, so we don't want a title)
- resource 'STR ' (-4091, sysheap, purgeable)
- {
- "";
- };
-
- // "left" button title
- resource 'STR ' (-4093, sysheap, purgeable)
- {
- "Create";
- };
-
- // rectangle list
- resource 'nrct' (-4096, sysheap, purgeable) {
- {
- {112, 251, 132, 311}; // left button
- {0,0,0,0}; // right button
- {-101, 180, -101+20, 400}; // on button (location of device list - popup is placed here)
- {0,0,0,0}; // off button
- {0,0,0,0}; // button label
- };
- };
-
- // Menu used to select between direct connect, AppleTalk, and Servers
- resource 'MENU' (-4096, sysheap, purgeable)
- {
- -4096,
- textMenuProc,
- 0xFFFFFFFF,
- enabled,
- "",
- {
- }
- };
-
- // Pop-up control used to select between direct connect printers and those being shared on the network
- resource 'CNTL' (-4096, sysheap, purgeable)
- {
- {0, 0, 20, 205}, // zero based control location
- 0, // Title options 0 = Left justified
- visible, // Should we display the control?
- 100, // Title Width
- -4096, // 'MENU' to display
- popupMenuCDEFproc+popupFixedWidth, // CDEF = CDEFID * 16 + varCode
- 0, // refCon = ResType to append = None
- "Connect via:" // Control title
- };
-
- resource 'DITL' (-4096, sysheap, purgeable)
- {
- {
- {3, 250, 23, 250 + 205},
- Control {enabled, -4096},
- };
- };
-